package org.demo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.demo.eunm.EUserType;
import org.demo.model.Model;
import org.demo.model.User;

import com.alibaba.fastjson.serializer.ext.JsonUtil;
import com.alibaba.fastjson.serializer.ext.MySerializeConfig;

public class Lauch {

	public static void main(String[] args) {
		User user=new User("Peter","123",EUserType.Customer);
		List<Class<?>> cl=new ArrayList<>();
		cl.add((Class<?>)Model.class);
		MySerializeConfig config= new MySerializeConfig(cl);
		System.out.println(JsonUtil.getJson(user, config));
	}
}
